﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using Model;
using Bll;
using System.Web;

namespace WebApiServer.Controllers
{
    public class HomeController : ApiController
    {

        UsertBLL bll = new UsertBLL();
        public int Regin(string account, string pwd, string name, string addr, string tel)
        {
            if (bll.Regin(account, pwd, name, addr, tel) > 0)
            {
                return 1;//执行注册

            }
            else
            {
                return 0;//验证手机号
            
            }


        }
    }
}
